/**
 *　WebsiteItem
 */

var React = require("react");
var CommonItem = require("./CommonItem");
var CommonMask = require("./CommonMask");
var CommonHeader = require("./CommonHeader");
var WebsiteItem = React.createClass({
    mixins: [CommonItem],
    render: function () {
        const {type}=this;
        const {data, updateState}=this.props;
        return (
            <div ref="container" className="details-item">
                <CommonMask type={type} data={data} updateState={updateState}/>
                <CommonHeader type={type}/>
                <div className="details-content">
                    <div className="info">{ data }</div>
                </div>
            </div>
        )
    }
});

module.exports = WebsiteItem;
